package com.education.welco.service;

import com.education.welco.pojo.OrderPaper;
import com.education.welco.pojo.OrderUserPaper;
import com.education.welco.pojo.vo.ClassPaper;
import com.education.welco.pojo.vo.WholePaperInfoAppVO;

import java.util.List;

public interface OrderUserPaperService {

    public List<OrderUserPaper> OrderUserPaperlist(Integer paper);
    public List<OrderUserPaper> OrderUserPaperlist3(Integer paper);

    public List<OrderUserPaper> OrderUserPaperlist1(Integer userId);

    public int InsertOrderPaper(OrderUserPaper orderUserPaper);

    public OrderUserPaper SelectOrderUserPaper(Integer paperId, Integer userId);

    public OrderUserPaper SelectOrderUserPaperForInfo(Integer paperId, Integer userId);

    public OrderUserPaper SelectOrderUserPaper1(Integer paperId, Integer userId);

     public int update(OrderUserPaper orderUserPaper);

     public int update2(OrderUserPaper orderUserPaper);

     public int delete(Integer paperId, Integer userId);

    public List<OrderUserPaper> OrderUserPaperlist2(Integer userId, Integer paperId);

    Integer selectCommitPaperNum(Integer id);

    List<ClassPaper> classPaperList(Integer paperId, Integer classId, Integer readState, Integer pageNum, Integer pageSize);

    String selectTeaIdByCourseId(Integer courseId);

    /**
     * 答题完毕后学生查看答题详情
     *
     * @param paperId 试卷id
     * @param stuId   学生用户id
     * @return
     */
    OrderUserPaper exitQuerypaperInfo(Integer paperId, Integer stuId);

    /**
     * 首页成绩排行  班级与试卷
     * @param paperId
     * @param teaId
     * @param classId
     * @return
     */
    List<OrderUserPaper> homeScoreQueryForTea(Integer teaId, Integer paperId, Integer classId);

    /**
     * 老师端首页成绩排行 查找班级下的试卷列表
     */
    List<OrderPaper> selectPaperBoxByClassId(Integer classId);

    List<WholePaperInfoAppVO> wholePaperInfo(Integer paperId, String likeName);

    OrderUserPaper selectorderUserPaperById(Integer stuPaperId);
}
